<!--
  ~   Copyright 1999-2018 dragonshard.net.
  ~   Licensed under the Apache License, Version 2.0 (the "License");
  ~   you may not use this file except in compliance with the License.
  ~   You may obtain a copy of the License at
  ~        http://www.apache.org/licenses/LICENSE-2.0
  ~   Unless required by applicable law or agreed to in writing, software
  ~   distributed under the License is distributed on an "AS IS" BASIS,
  ~   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~   See the License for the specific language governing permissions and
  ~   limitations under the License.
  -->

<html>
<body>
<script src="security.js" type="text/javascript"></script>
<script>
  var modulus = '8f8ebda0a1f0524da6090c88af8171e2fea5666cbc3e018b6f324324991d21af4b4a8e1633e0d072299d3d42d9798878c4cf4fa6004cb1172f04a1a47297c4bee90e35e62962fdf516497d9ae2c939eb8a6dfd79261acd53edc2b38ad19279b09829c3778b5486920d854833ef3c22ec873aa025113e9825ef76a3ef67707321';
  var publicKey = '10001';
  var key = RSAUtils.getKeyPair(publicKey, '', modulus);
  // var inputText = '{"loginName":"ds-user","nickname":"ds","email":"ds@dragonshard.net","roleIds":["1"]}';
  var inputText = 'e6b58be8af95';
  console.log(RSAUtils.encryptedString(key, inputText));
</script>
</body>
</html>
